<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%

    com.dhapi.demo.web.filter.User user = new com.dhapi.demo.web.filter.User();
    user.setName("大山炮");
    user.setAge(99);
    List<String> list = new ArrayList<String>();
    list.add("山贼");
    list.add("高手");
    user.setTags(list);
    if(session.getAttribute("user") == null){
        session.setAttribute("user",user);
    }
%>
<html>
<head>
    <title></title>
</head>
<body>

<p>SESSIONID:<%=session.getId()%></p>
<p>Name:<%=user.getName()%></p>
<p>Age:<%=user.getAge()%></p>
<p>Tag:
<c:forEach var="item" items="${user.tags}">
    ${item}
</c:forEach>
</p>
</body>
</html>
